package com.microframework.boot.customapi.model.mapping;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.microframework.boot.customapi.model.domain.BizSqlCategory;
import com.microframework.boot.customapi.model.domain.Dbapi;
import com.microframework.boot.customapi.model.domain.DbapiGroup;
import com.microframework.boot.customapi.model.domain.DbapiReqArguments;
import com.microframework.boot.customapi.model.domain.DbapiSql;
import com.microframework.boot.customapi.model.domain.Orm;
import com.microframework.boot.customapi.model.domain.Sql;

/**
 * Generated by JFinal, do not modify this file.
 * <pre>
 * Example:
 * public void configPlugin(Plugins me) {
 *     ActiveRecordPlugin arp = new ActiveRecordPlugin(...);
 *     _MappingKit.mapping(arp);
 *     me.add(arp);
 * }
 * </pre>
 */
public class _MappingKit {
	
	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping(BizSqlCategory.TABLE_NAME, "id", BizSqlCategory.class);
		arp.addMapping(Dbapi.TABLE_NAME, "id", Dbapi.class);
		arp.addMapping(DbapiGroup.TABLE_NAME, "id", DbapiGroup.class);
		arp.addMapping(DbapiReqArguments.TABLE_NAME, "id", DbapiReqArguments.class);
		// Composite Primary Key order: id,sql_id
		arp.addMapping(DbapiSql.TABLE_NAME, "id,sql_id", DbapiSql.class);
		arp.addMapping(Sql.TABLE_NAME, "id", Sql.class);
		arp.addMapping(Orm.TABLE_NAME, "id", Orm.class);
	}
}


